﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="List.ascx.cs" Inherits="Modules_Banner_List" %>
<%@ Register Assembly="Portal.Core" Namespace="Portal.Core.Web.UI.Controls" TagPrefix="cc1" %>

<cc1:WPanel ID="WPanel1" runat="server" Icon="Themes\Images\Banner.jpg" Title="Banner">
    <asp:Button ID="New" runat="server" Text="New" OnClick="New_Click" /><br />

        <asp:PlaceHolder runat="server" ID="phPagingTop"></asp:PlaceHolder>
    <div class="mybr"></div>
    <asp:Repeater ID="Contents" runat="server" OnItemCommand="Contents_ItemCommand">
        <HeaderTemplate>
            <table class="Contents" cellpadding="0" cellspacing="0">        
            <tr class="Header">
                <td>Tên</td>
                <td>Nội dung</td>
                <td>clicked</td>
                <td></td>
                <td></td>
            </tr>
        </HeaderTemplate>
        <FooterTemplate>
        </table>
        </FooterTemplate>
        <ItemTemplate>
            <tr class="Item">
                <td>
                    <%#DataBinder.Eval(Container.DataItem, "Name")%>
                </td>
                <td>
                    <%#DataBinder.Eval(Container.DataItem, "RenderImage")%> 
                    <%#BuildPositions(Eval("ID"))%>
                </td>
                <td><span style="font-weight:700"><%#Eval("clicked") %></span></td>
                <td style="padding-left: 10px;">
                    <asp:Button runat="server" ID="btnEdit" Text="Edit" CommandName="Edit" CssClass="CommandEdit" CommandArgument='<%#Eval("ID")%>'/>
                </td>
                <td style="padding-left: 10px;">
                    <asp:Button runat="server" ID="btnDelete" Text="Delete" CommandName="Delete" CssClass="CommandDelete" CommandArgument='<%#Eval("ID")%>'  OnClientClick="return confirmDelete();"/>
                </td>
            </tr>
        </ItemTemplate>     
        <AlternatingItemTemplate>
            <tr class="AlterItem">
                <td>
                    <%#DataBinder.Eval(Container.DataItem, "Name")%>
                </td>
                <td>
                    <%#DataBinder.Eval(Container.DataItem, "RenderImage")%>
					<%#BuildPositions(Eval("ID"))%>
                </td>
                <td><span style="font-weight:700"><%#Eval("clicked") %></span></td>
                <td style="padding-left: 10px;">
                    <asp:Button runat="server" ID="btnEdit" Text="Edit" CommandName="Edit" CssClass="CommandEdit" CommandArgument='<%#Eval("ID")%>'/>
                </td>
                <td style="padding-left: 10px;">
                    <asp:Button runat="server" ID="btnDelete" Text="Delete" CommandName="Delete" CssClass="CommandDelete" CommandArgument='<%#Eval("ID")%>'  OnClientClick="return confirmDelete();"/>
                </td>
            </tr>
        </AlternatingItemTemplate>           
    </asp:Repeater>
    <br class="clear" />
    <asp:PlaceHolder runat="server" ID="phPagingBottom"></asp:PlaceHolder>
    <div class="mybr"></div>
    <br class="clear"/>

</cc1:WPanel>